<div class="caps view">
<h2><?php  __('Cap');?></h2>
	<dl><?php $i = 0; $class = ' class="altrow"';?>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Id'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $cap['Cap']['id']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Tencap'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $cap['Cap']['tencap']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Ghichu'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $cap['Cap']['ghichu']; ?>
			&nbsp;
		</dd>
	</dl>
</div>
<div class="actions">
	<h3><?php __('Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('Edit Cap', true), array('action' => 'edit', $cap['Cap']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('Delete Cap', true), array('action' => 'delete', $cap['Cap']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $cap['Cap']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('List Caps', true), array('action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Cap', true), array('action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Ktkls', true), array('controller' => 'ktkls', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Ktkl', true), array('controller' => 'ktkls', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Phongtraocbs', true), array('controller' => 'phongtraocbs', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Phongtraocb', true), array('controller' => 'phongtraocbs', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Phongtraokhs', true), array('controller' => 'phongtraokhs', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Phongtraokh', true), array('controller' => 'phongtraokhs', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Phongtraosvs', true), array('controller' => 'phongtraosvs', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Phongtraosv', true), array('controller' => 'phongtraosvs', 'action' => 'add')); ?> </li>
	</ul>
</div>
<div class="related">
	<h3><?php __('Related Ktkls');?></h3>
	<?php if (!empty($cap['Ktkl'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Cap Id'); ?></th>
		<th><?php __('Hinhthuc Id'); ?></th>
		<th><?php __('Khoa Id'); ?></th>
		<th><?php __('Loai Id'); ?></th>
		<th><?php __('Nguoinhan'); ?></th>
		<th><?php __('Lydo'); ?></th>
		<th><?php __('Ngaykt'); ?></th>
		<th><?php __('Ghichu'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($cap['Ktkl'] as $ktkl):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $ktkl['id'];?></td>
			<td><?php echo $ktkl['cap_id'];?></td>
			<td><?php echo $ktkl['hinhthuc_id'];?></td>
			<td><?php echo $ktkl['khoa_id'];?></td>
			<td><?php echo $ktkl['loai_id'];?></td>
			<td><?php echo $ktkl['nguoinhan'];?></td>
			<td><?php echo $ktkl['lydo'];?></td>
			<td><?php echo $ktkl['ngaykt'];?></td>
			<td><?php echo $ktkl['ghichu'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'ktkls', 'action' => 'view', $ktkl['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'ktkls', 'action' => 'edit', $ktkl['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'ktkls', 'action' => 'delete', $ktkl['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $ktkl['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Ktkl', true), array('controller' => 'ktkls', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php __('Related Phongtraocbs');?></h3>
	<?php if (!empty($cap['Phongtraocb'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Chidoancb Id'); ?></th>
		<th><?php __('Loaiptrao Id'); ?></th>
		<th><?php __('Cap Id'); ?></th>
		<th><?php __('Phongtraocb'); ?></th>
		<th><?php __('Ngaybdcb'); ?></th>
		<th><?php __('Ngayktcb'); ?></th>
		<th><?php __('Thanhtichcb'); ?></th>
		<th><?php __('Ghichucb'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($cap['Phongtraocb'] as $phongtraocb):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $phongtraocb['id'];?></td>
			<td><?php echo $phongtraocb['chidoancb_id'];?></td>
			<td><?php echo $phongtraocb['loaiptrao_id'];?></td>
			<td><?php echo $phongtraocb['cap_id'];?></td>
			<td><?php echo $phongtraocb['phongtraocb'];?></td>
			<td><?php echo $phongtraocb['ngaybdcb'];?></td>
			<td><?php echo $phongtraocb['ngayktcb'];?></td>
			<td><?php echo $phongtraocb['thanhtichcb'];?></td>
			<td><?php echo $phongtraocb['ghichucb'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'phongtraocbs', 'action' => 'view', $phongtraocb['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'phongtraocbs', 'action' => 'edit', $phongtraocb['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'phongtraocbs', 'action' => 'delete', $phongtraocb['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $phongtraocb['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Phongtraocb', true), array('controller' => 'phongtraocbs', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php __('Related Phongtraokhs');?></h3>
	<?php if (!empty($cap['Phongtraokh'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Loaiptrao Id'); ?></th>
		<th><?php __('Cap Id'); ?></th>
		<th><?php __('Khoa Id'); ?></th>
		<th><?php __('Phongtrao'); ?></th>
		<th><?php __('Ngaybdpt'); ?></th>
		<th><?php __('Ngayktpt'); ?></th>
		<th><?php __('Thanhtichkh'); ?></th>
		<th><?php __('Ghichukh'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($cap['Phongtraokh'] as $phongtraokh):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $phongtraokh['id'];?></td>
			<td><?php echo $phongtraokh['loaiptrao_id'];?></td>
			<td><?php echo $phongtraokh['cap_id'];?></td>
			<td><?php echo $phongtraokh['khoa_id'];?></td>
			<td><?php echo $phongtraokh['phongtrao'];?></td>
			<td><?php echo $phongtraokh['ngaybdpt'];?></td>
			<td><?php echo $phongtraokh['ngayktpt'];?></td>
			<td><?php echo $phongtraokh['thanhtichkh'];?></td>
			<td><?php echo $phongtraokh['ghichukh'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'phongtraokhs', 'action' => 'view', $phongtraokh['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'phongtraokhs', 'action' => 'edit', $phongtraokh['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'phongtraokhs', 'action' => 'delete', $phongtraokh['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $phongtraokh['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Phongtraokh', true), array('controller' => 'phongtraokhs', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php __('Related Phongtraosvs');?></h3>
	<?php if (!empty($cap['Phongtraosv'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Chidoansv Id'); ?></th>
		<th><?php __('Loaiptrao Id'); ?></th>
		<th><?php __('Cap Id'); ?></th>
		<th><?php __('Phongtraosv'); ?></th>
		<th><?php __('Ngaybdsv'); ?></th>
		<th><?php __('Ngayktsv'); ?></th>
		<th><?php __('Thanhtichsv'); ?></th>
		<th><?php __('Ghichusv'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($cap['Phongtraosv'] as $phongtraosv):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $phongtraosv['id'];?></td>
			<td><?php echo $phongtraosv['chidoansv_id'];?></td>
			<td><?php echo $phongtraosv['loaiptrao_id'];?></td>
			<td><?php echo $phongtraosv['cap_id'];?></td>
			<td><?php echo $phongtraosv['phongtraosv'];?></td>
			<td><?php echo $phongtraosv['ngaybdsv'];?></td>
			<td><?php echo $phongtraosv['ngayktsv'];?></td>
			<td><?php echo $phongtraosv['thanhtichsv'];?></td>
			<td><?php echo $phongtraosv['ghichusv'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'phongtraosvs', 'action' => 'view', $phongtraosv['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'phongtraosvs', 'action' => 'edit', $phongtraosv['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'phongtraosvs', 'action' => 'delete', $phongtraosv['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $phongtraosv['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Phongtraosv', true), array('controller' => 'phongtraosvs', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
